﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class ContactsModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;

        private int _iUserid;

        private string _sContactNumber;

        private string _sComment;

        private bool _sIsMain;

        private string _sCategory;

        private int _iContactNumberID;



        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {


            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }


        public int iContactNumberID
        {

            get
            {
                return _iContactNumberID;
            }
            set
            {
                _iContactNumberID = value;

                OnPropertyChanged("iContactNumberID");

            }
        }

        public int iUserid
        {

            get
            {
                return _iUserid;
            }
            set
            {
                _iUserid = value;

                OnPropertyChanged("iUserid");

            }
        }


        public string sContactNumber
        {

            get
            {
                return _sContactNumber;
            }
            set
            {
                _sContactNumber = value;

                OnPropertyChanged("sContactNumber");

            }
        }



        public string sComment
        {

            get
            {
                return _sComment;
            }
            set
            {
                _sComment = value;

                OnPropertyChanged("sComment");

            }
        }

        public bool sIsMain
        {

            get
            {
                return _sIsMain;
            }
            set
            {
                _sIsMain = value;

                OnPropertyChanged("sIsMain");

            }
        }

        public string sCategory
        {

            get
            {
                return _sCategory;
            }
            set
            {
                _sCategory = value;

                OnPropertyChanged("sCategory");

            }
        }


        
    }


}